"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[643],{9888:function(a,b,c){c.d(b,{Z:function(){return F}});var d=c(9611),e=c(7294),f=function(){if("undefined"!=typeof Map)return Map;function a(a,b){var c=-1;return a.some(function(a,d){return a[0]===b&&(c=d,!0)}),c}return(function(){function b(){this.__entries__=[]}return Object.defineProperty(b.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),b.prototype.get=function(b){var c=a(this.__entries__,b),d=this.__entries__[c];return d&&d[1]},b.prototype.set=function(b,c){var d=a(this.__entries__,b);~d?this.__entries__[d][1]=c:this.__entries__.push([b,c])},b.prototype.delete=function(b){var c=this.__entries__,d=a(c,b);~d&&c.splice(d,1)},b.prototype.has=function(b){return!!~a(this.__entries__,b)},b.prototype.clear=function(){this.__entries__.splice(0)},b.prototype.forEach=function(a,b){void 0===b&&(b=null);for(var c=0,d=this.__entries__;c0},a.prototype.connect_=function(){!g||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),k?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},a.prototype.disconnect_=function(){g&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},a.prototype.onTransitionEnd_=function(a){var b=a.propertyName,c=void 0===b?"":b;j.some(function(a){return!!~c.indexOf(a)})&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a()),this.instance_},a.instance_=null,a}(),m=function(a,b){for(var c=0,d=Object.keys(b);c0},a}(),w="undefined"!=typeof WeakMap?new WeakMap():new f(),x=function(){function a(b){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var c=l.getInstance(),d=new v(b,c,this);w.set(this,d)}return a}();["observe","unobserve","disconnect"].forEach(function(a){x.prototype[a]=function(){var b;return(b=w.get(this))[a].apply(b,arguments)}});var y=void 0!==h.ResizeObserver?h.ResizeObserver:x,z=function(a){for(var b=a;b=b.parentElement;){var c=getComputedStyle(b,null).getPropertyValue("overflow-y");if(b===document.body)return window;if("auto"===c||"scroll"===c)return b}return window},A=function(a,b){var c=a,d=0;b.firstChild&&b.firstChild.offsetParent!==b&&(d+=a.offsetTop-b.offsetTop,b=a.offsetParent,d+=-a.offsetTop);do d+=c.offsetTop,c=c.offsetParent;while(c&&c!==b);return d},B=null;"undefined"!=typeof CSS&&CSS.supports&&(CSS.supports("position","sticky")?B="sticky":CSS.supports("position","-webkit-sticky")&&(B="-webkit-sticky"));var C=!1;try{var D=Object.defineProperty({},"passive",{get:function(){C={passive:!0}}});window.addEventListener("testPassive",null,D),window.removeEventListener("testPassive",null,D)}catch(E){}var F=function(a){function b(b){var c=a.call(this,b)||this;return c.addListener=function(a,b,d,e){a.addEventListener(b,d,e),c.unsubscribes.push(function(){return a.removeEventListener(b,d)})},c.addResizeObserver=function(a,b){var d=new y(b);d.observe(a),c.unsubscribes.push(function(){return d.disconnect()})},c.registerContainerRef=function(a){B&&(c.node=a,a?(c.scrollPane=z(c.node),c.latestScrollY=c.scrollPane===window?window.scrollY:c.scrollPane.scrollTop,c.addListener(c.scrollPane,"scroll",c.handleScroll,C),c.addListener(c.scrollPane,"mousewheel",c.handleScroll,C),c.scrollPane===window?(c.addListener(window,"resize",c.handleWindowResize),c.handleWindowResize()):(c.addResizeObserver(c.scrollPane,c.handleScrollPaneResize),c.handleScrollPaneResize()),c.addResizeObserver(c.node.parentNode,c.handleParentNodeResize),c.handleParentNodeResize(),c.addResizeObserver(c.node,c.handleNodeResize),c.handleNodeResize({initial:!0}),c.initial()):(c.unsubscribes.forEach(function(a){return a()}),c.unsubscribes=[],c.scrollPane=null))},c.getCurrentOffset=function(){if("relative"===c.mode)return c.offset;var a=c.props,b=a.offsetTop,d=a.offsetBottom;return"stickyTop"===c.mode?Math.max(0,c.scrollPaneOffset+c.latestScrollY-c.naturalTop+b):"stickyBottom"===c.mode?Math.max(0,c.scrollPaneOffset+c.latestScrollY+c.viewPortHeight-(c.naturalTop+c.nodeHeight+d)):void 0},c.handleWindowResize=function(){c.viewPortHeight=window.innerHeight,c.scrollPaneOffset=0,c.handleScroll()},c.handleScrollPaneResize=function(){c.viewPortHeight=c.scrollPane.offsetHeight,c.scrollPane.firstChild.offsetParent===c.scrollPane?c.scrollPaneOffset=c.scrollPane.getBoundingClientRect().top:c.scrollPaneOffset=0,c.handleScroll()},c.handleParentNodeResize=function(){var a=c.node.parentNode,b=getComputedStyle(a,null),d=parseInt(b.getPropertyValue("padding-top"),10),e=parseInt(b.getPropertyValue("padding-bottom"),10);c.naturalTop=A(a,c.scrollPane)+d+c.scrollPaneOffset;var f=c.parentHeight;c.parentHeight=a.getBoundingClientRect().height-(d+e),"relative"===c.mode&&(c.props.bottom?c.changeMode("relative"):f>c.parentHeight&&c.changeToStickyBottomIfBoxTooLow(c.latestScrollY)),f!==c.parentHeight&&"relative"===c.mode&&(c.latestScrollY=Number.POSITIVE_INFINITY,c.handleScroll())},c.handleNodeResize=function(a){var b=(void 0===a?{}:a).initial,d=c.nodeHeight;if(c.nodeHeight=c.node.getBoundingClientRect().height,!b&&d!==c.nodeHeight){var e=c.props,f=e.offsetTop,g=e.offsetBottom,h=e.bottom;if(c.nodeHeight+f+g<=c.viewPortHeight)c.mode=void 0,c.initial();else{var i=d-c.nodeHeight,j=c.parentHeight-c.nodeHeight,k=Math.min(j,c.getCurrentOffset()+(h?i:0));c.offset=Math.max(0,k),h&&"stickyBottom"===c.mode||c.changeMode("relative")}}},c.handleScroll=function(){var a=c.props,b=a.offsetTop,d=a.offsetBottom,e=c.scrollPane===window?window.scrollY:c.scrollPane.scrollTop;if(e!==c.latestScrollY){if(c.nodeHeight+b+d<=c.viewPortHeight){c.initial(),c.latestScrollY=e;return}var f=e-c.latestScrollY;c.offset=c.getCurrentOffset(),f>0?"stickyTop"===c.mode?e+c.scrollPaneOffset+b>c.naturalTop&&(e+c.scrollPaneOffset+c.viewPortHeight<=c.naturalTop+c.nodeHeight+c.offset+d?c.changeMode("relative"):c.changeMode("stickyBottom")):"relative"===c.mode&&c.changeToStickyBottomIfBoxTooLow(e):"stickyBottom"===c.mode?c.scrollPaneOffset+e+c.viewPortHeight=c.naturalTop+c.offset?c.changeMode("relative"):c.changeMode("stickyTop")):"relative"===c.mode&&c.scrollPaneOffset+e+b=this.naturalTop+this.nodeHeight+this.offset+b&&this.changeMode("stickyBottom")},g.render=function(){var a=this.props,b=a.children,c=a.className,d=a.style;return e.createElement("div",{className:c,style:d,ref:this.registerContainerRef},b)},b}(e.Component);F.defaultProps={onChangeMode:function(){},offsetTop:0,offsetBottom:0}}}])